package com.fan.admin.dao;

import com.fan.commons.pojo.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fan
 * @date 2021/3/9
 */
@Mapper
public interface CourseMapper {

	int insertCourseMust(Course course);

	int deleteCourseById(@Param("id") Integer id);

	int updateCourse(Course course);

	List<Course> queryCourse();

	Course queryCourseById(@Param("id") Integer id);

	Course queryCourseByCourseId(@Param("courseId") String courseId);

	List<Course> queryCourseByNature(@Param("nature") Integer nature);

	List<Course> queryCourseActive(Course course);

	int updateCourseScore(Course course);

}
